<link rel="stylesheet" type="text/css" href="/css/base.css" />
<link rel="stylesheet" type="text/css" href="/css/index.css" />
<script src="libs/moment/moment.js"></script>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-md-8 col-md-offset-1 essay-box">
            <ul class="essay-list">
                {{#each essays}}
                <li class="essay-content">
                    <a href="/main/{{user._id}}"><span>{{user.name}}</span><span class="update-time">{{updateTime}}</span></a>
                    <h6 class="title"> <a href="/essay/{{_id}}">{{title}}</a></h6>
                    <p class="content">{{abstract}}</p>
                </li>
                {{/each}}
            </ul>
        </div>
    </div>
</div>

<script>
    $(".update-time").each(function(){
        var time=$(this).text();
        $(this).text(moment(time).format("MM月DD日"));
    })
</script>

<style>
.update-time{
    padding-left:20px;
}

    </style>